<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <base th:href="${#request.getContextPath()+'/'}">
    <title>登陆</title>
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <link rel="stylesheet" type="text/css" href="css/shopping-mall-index.css" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/zhonglin.js"></script>
    <script type="text/javascript" src="jquery/jquery.js"></script>
    <script type="text/javascript" src="js/Validform_v5.3.2.js"></script>
    <link rel="stylesheet" type="text/css" href="h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="h-ui.admin/css/style.css" />
</head>
<body>

<div class="sign-logo w1200">
    <h1><a href="#" title="宅客微购"><img src="images/logo.jpg" /></a></h1>
</div>

<div class="sign-con w1200">
    <!--内容开始-->
    <div class="password-con registered">
        <form action="" method="post" class="form form-horizontal" id="form-user-login">
            <div class="row cl">
                <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>用户名：</label>
                <div class="formControls col-5 col-sm-6">
                    <input type="text" class="input-text" value="" placeholder="" id="username" name="username"  errormsg="请输入4-16位字母或数字" datatype="/^[a-z,0-9]{4,16}$/" ajaxurl="sso/checkUsername" sucmsg="用户名验证通过！"  nullmsg="用户名不能为空">
                </div>
                <div class="col-4 col-sm-3"></div>
            </div>
            <div class="row cl">
                <label class="form-label col-3 col-sm-3"><span class="c-red">*</span>密码：</label>
                <div class="formControls col-5 col-sm-6">
                    <input type="password" class="input-text" value="" placeholder="" id="password" name="password"  errormsg="请输入5-16位字符" datatype="*5-16"  nullmsg="密码不能为空">
                </div>
                <div class="col-4 col-sm-3"></div>
            </div>
                    <input type="hidden" name="returnUrl" th:value="${#request.getParameter('returnUrl')}">
            <div class="row cl">
                <label class="form-label col-1 col-sm-1"></label>
                <div class="formControls col-5 col-sm-6">
                    <button type="submit" id="loginBut" class="psw-btn">立即登陆</button>
                </div>
                <div class="col-4 col-sm-3"></div>
            </div>


        </form>
        <p class="sign-in">没有账号？请<a href="toRegister">注册</a></p>
    </div>
</div>

<!--底部服务-->
<div class="ft-service">
    <div class="w1200">
        <div class="sv-con-l2 f-l">
            <dl>
                <dt><a href="#">新手上路</a></dt>
                <dd>
                    <a href="#">购物流程</a>
                    <a href="#">在线支付</a>
                </dd>
            </dl>
            <dl>
                <dt><a href="#">配送方式</a></dt>
                <dd>
                    <a href="#">货到付款区域</a>
                    <a href="#">配送费标准</a>
                </dd>
            </dl>
            <dl>
                <dt><a href="#">购物指南</a></dt>
                <dd>
                    <a href="#">常见问题</a>
                    <a href="#">订购流程</a>
                </dd>
            </dl>
            <dl>
                <dt><a href="#">售后服务</a></dt>
                <dd>
                    <a href="#">售后服务保障</a>
                    <a href="#">退款说明</a>
                    <a href="#">新手选购商品总则</a>
                </dd>
            </dl>
            <dl>
                <dt><a href="#">关于我们</a></dt>
                <dd>
                    <a href="#">投诉与建议</a>
                </dd>
            </dl>
            <div style="clear:both;"></div>
        </div>
        <div class="sv-con-r2 f-r">
            <p class="sv-r-tle">187-8660-5539</p>
            <p>周一至周五9:00-17:30</p>
            <p>（仅收市话费）</p>
            <a href="#" class="zxkf">24小时在线客服</a>
        </div>
        <div style="clear:both;"></div>
    </div>
</div>

<!--底部 版权-->
<div class="footer w1200">
    <p>
        <a href="#">关于我们</a><span>|</span>
        <a href="#">友情链接</a><span>|</span>
        <a href="#">宅客微购社区</a><span>|</span>
        <a href="#">诚征英才</a><span>|</span>
        <a href="#">商家登录</a><span>|</span>
        <a href="#">供应商登录</a><span>|</span>
        <a href="#">热门搜索</a><span>|</span>
        <a href="#">宅客微购新品</a><span>|</span>
        <a href="#">开放平台</a>
    </p>
    <p>
        沪ICP备13044278号<span>|</span>合字B1.B2-20130004<span>|</span>营业执照<span>|</span>互联网药品信息服务资格证<span>|</span>互联网药品交易服务资格证
    </p>
</div>
<script type="text/javascript" src="h-ui/js/submit_form_login.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
    $(function() {

        $("#form-user-login").Validform({
            tiptype:2
            ,callback:function(form){ // 表单校验通过后调用这个函数
                console.info("表单校验通过");
                submitForm("/sso/login","form-user-login")
                // 如果callback里明确return false，则表单不会提交，如果return true或没有return，则会提交表单
                return false;


            }
        });
    });
</script>
</body>
</html>